<?php
namespace Tbf\Bundle\SerializerBundle\Handler;
use Tbf\Bundle\SerializerBundle\Handler\ToArray\ToArrayInterface;

class DateTimeSerializer implements ToArrayInterface
{
    public function toArray($obj,$group=null)
    {
        /** @var \DateTime $obj */
        return $obj->format('Y-m-d H:i:s');
    }
}
